import { createRouter, createWebHistory } from "vue-router";

import Login from '../views/Login.vue';
import Show from '../views/Show.vue';
import Borrow from '../views/Borrow.vue';
const routes = [
    {
        path: "/",
        name: "Login",
        component: Login
    },
    {
        path: "/Show",
        name: "Show",
        component: Show
    },
    {
        path: "/Borrow/:BId",
        name: "Borrow",
        component: Borrow
    }

]
const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router